package com.example.demo01.controller;


import com.example.demo01.entity.Order;
import com.example.demo01.entity.User;
import com.example.demo01.mapper.OrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class OrderController {

    @Autowired
    private OrderMapper orderMapper;

    @GetMapping("/order/FindAll")
    public List<Order> find(){

        return orderMapper.selectOrderAndAllUser();

    }
}
